

//package cfu_main.fir;
/*
 * This file creates the array of 8x8 CFU (total 64 CFUs). It verifies the functionality od FIR filter
 * Filter configuration: 
 * 		LCF = 0.3; HCF = 80;Sampling frequency =;Taps = 25; Number of channels = 1;
 * 		
 * 
 * 
 */

//import java.io.*;
//import java.util.*;

public class FIR_Filter_Mapping extends Mapping_Main {

	/*
	 * Input arguments to this class will be in the following order 0-
	 * Instruction 1- 1st input register index 2- 2nd input register index; pass
	 * null if not required 3- 3rd input register index; pass null if not
	 * required 4- Output register index 5- Shift offset
	 */

	/*
	 * public static String no_cfu_row_string; public static String
	 * no_cfu_column_string ; public static String no_taps_string; public static
	 * String no_samples_string; public static String no_channels_string;
	 */

	public int no_taps_int;

	public Ram fir_ram;

	// Instructions
	/*
	 * The same list of instructions will be used as in Cfu class
	 */
	
	public static final int FIR_SCALING_FACTOR = 15;

	// Cfu[][] Cfu_Array = new Cfu[no_cfu_row][no_cfu_column];
	// Cfu cfu1 = new Cfu(1,0,1,2,3,0);

//	public FIR_mapping(Instruction_List instruction)
//	{
//		this.instruction = instruction;
//	}
	
	/**
	 * While mapping it is assumed that the data is already loaded in the RAM.
	 * So, this method loads the data in proper sequence in the RAM before CFUs
	 * starts executing
	 * 
	 */
	
	public void Create_RAM() {
		fir_ram = new Ram(ram_size, no_samples_int);

		fir_ram.in_file_name = "C:/Users/kspatel/workspace/ISS_SIMD_Project/src/test2.txt";
		fir_ram.Load_Coefficients();
		fir_ram.Load_Data();

	}
}
